<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs for page modifier.truncate_cn.php</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="file-name"><img src="../../media/images/Page_logo.png" alt="File" style="vertical-align: middle">/library/templates/smarty/plugins/modifier.truncate_cn.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Smarty plugin</p>
<p class="description"><p>Smarty plugin</p></p>
	<ul class="tags">
				<li><span class="field">filesource:</span> <a href="../../__filesource/fsource_Templates_Smarty_plugins_librarytemplatessmartypluginsmodifier.truncate_cn.php.html">Source Code for this file</a></li>
			</ul>
		
			</div>
</div>
		

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functionsmarty_modifier_truncate_cn" id="functionsmarty_modifier_truncate_cn"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../../media/images/Function.png" />
		<span class="method-title">smarty_modifier_truncate_cn</span> (line <span class="line-number"><a href="../../__filesource/fsource_Templates_Smarty_plugins_librarytemplatessmartypluginsmodifier.truncate_cn.php.html#a27">27</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Smarty truncate modifier plugin
 Type:     modifier<br /> Name:     truncate<br /> Purpose:  Truncate a string to a certain length if necessary,           optionally splitting in the middle of a word, and           appending the $etc string or inserting $etc into the middle.</p>
<p class="description"><p>Smarty truncate modifier plugin
 Type:     modifier<br /> Name:     truncate<br /> Purpose:  Truncate a string to a certain length if necessary,           optionally splitting in the middle of a word, and           appending the $etc string or inserting $etc into the middle.</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Monte Ohrt &lt;<a href="mailto:monte">at ohrt dot com monte at ohrt dot com</a>&gt;</li>
				<li><span class="field">link:</span> <a href="http://smarty.php.net/manual/en/language.modifier.truncate.php">http://smarty.php.net/manual/en/language.modifier.truncate.php
          truncate (Smarty online manual)</a></li>
			</ul>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			smarty_modifier_truncate_cn
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$string</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$length</span> = <span class="var-default">80</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$etc</span> = <span class="var-default">&#039;...&#039;</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$code</span> = <span class="var-default">&#039;UTF-8&#039;</span>], <span class="var-type">boolean</span>&nbsp;<span class="var-name">4</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">4</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$string</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$length</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$etc</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$code</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Tue, 02 Mar 2010 07:47:11 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>